# /etc/profile: system-wide .profile file for the Bourne shell (sh(1))
# and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).

if [ "`id -u`" -eq 0 ]; then
  PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
else
  PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/sbin:/usr/sbin"
fi
export PATH

if [ "$PS1" ]; then
  if [ "$BASH" ] && [ "$BASH" != "/bin/sh" ]; then
    # The file bash.bashrc already sets the default PS1.
    # PS1='\h:\w\$ '
    if [ -f /etc/bash.bashrc ]; then
      . /etc/bash.bashrc
    fi
  else
    if [ "`id -u`" -eq 0 ]; then
      PS1='# '
    else
      PS1='$ '
    fi
  fi
fi

if [ -d /etc/profile.d ]; then
  for i in /etc/profile.d/*.sh; do
    if [ -r $i ]; then
      . $i
    fi
  done
  unset i
fi
tty | egrep -q tty[1-6] && export LC_ALL=C


export ADB="/var2/local/ak/aksdk/platform-tools"
export AKBUILD="/var2/local/ak/aksdk/build-tools/27.0.3"
export GIT="/root/git/bin/"
export AK_LIB="/var2/local/ak/aksdk/emulator/lib"
export AK_LIB64="/var2/local/ak/aksdk/emulator/lib64"
export ANDROID_AVD_HOME="/var2/local/ak/sdkhome/.android/avd"
export EMULATOR2="/var2/local/ak/aksdk/tool"
export EMULATOR="/var2/local/ak/aksdk/emulator"
export ANDROID_SDK_HOME="/var2/local/ak/sdkhome"
export MYLIBS="/var2/mylibs/"
export QT_QPA_PLATFORM_PLUGIN_PATH="/var2/local/ak/aksdk/emulator/lib64/qt/plugins"
export QTLIB="/var2/local/ak/aksdk/emulator/lib64/qt/lib"
export QT="/var2/local/ak/aksdk/emulator/lib64/qt"
export NDK="/var2/local/ndk/ndkr14b"
export NDKBIN="/var2/local/ndk/ndkr14b/prebuilt/linux-x86_64/bin"

export PATH="$PATH:$ANDROID_SDK_HOME:$EMULATOR:$EMULATOR2:$ANDROID_AVD_HOME:$AK_LIB:$AK_LIB64:$MYLIBS:$QT_QPA_PLATFORM_PLUGIN_PATH:$QTLIB:$QT:$NDK:$NDKBIN:$GIT:$AKBUILD:$ADB"
